package com.ddtech.business.train.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ddtech.business.train.entity.TrainPlan;
import com.ddtech.business.train.entity.TrainPlanChapter;
import com.ddtech.business.train.res.TrainPlanVo;

import java.util.List;

/**
 * <p>
 * 章节表 服务类
 * </p>
 *
 * @author bin_pu
 * @since 2023-02-06
 */
public interface TrainPlanChapterService extends IService<TrainPlanChapter> {

    /**
     * 保存课程信息
     *
     * @param trainPlan
     * @param trainPlanVo
     */
    void saveChapter(TrainPlan trainPlan, TrainPlanVo trainPlanVo);

    /**
     * 获取章节信息
     * @param id
     * @return
     */
    List<TrainPlanChapter> getChapter(String id);

    /**
     * 获取章节信息-PC、APP
     * @param id
     * @return
     */
    List<TrainPlanChapter> getChapterList(String id);
}
